﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="KullaniciKayit.ascx.cs"
    Inherits="HPDMAS.UserControls.KullaniciKayit" %>
<%@ Reference Page="~/SecureImg.aspx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .bold
    {
        font-weight: bold;
    }
    .txtKayit
    {
        width: 250px;
    }
    .ddlKayit
    {
    }
    .tblKayit
    {
        margin: 30px 30px 30px 30px;
    }
    .trKayit
    {
    }
    .tdKayit
    {
        text-align: right;
        width: auto;
    }
    .lnkBtnKayit
    {
        font-weight: bold;
        background-color: #D12229;
        text-align: center;
        padding: 6px;
        border-color: #2C5115;
        border-width: 1px;
        border-style: solid;
        width: 100px;
    }
</style>
<div class="form-actions">
    <table>
        <tr>
            <td colspan="3">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
        </tr>
        <tr class="trKayit">
            <td colspan="3">
                <asp:Label runat="server" Text="Kaydol" ID="lblKaydolText" Style="font-size: large;
                    font-weight: bold"></asp:Label><br />
                <hr />
            </td>
            <td>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label33" runat="server" Text="Lisans No"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label34" runat="server" Text=":" Font-Bold="True"></asp:Label>
            </td>
            <td>
                <asp:TextBox class="txtKayit" ID="txtLisansNo" runat="server" MaxLength="5" Width="160px"></asp:TextBox>
                <asp:FilteredTextBoxExtender ID="LisansNoKontrol" runat="server" Enabled="True" FilterType="Numbers"
                    TargetControlID="txtLisansNo">
                </asp:FilteredTextBoxExtender>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLisansNo"
                    ErrorMessage="Lisans No alanı boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Lisans No en az 4 karakter olmalı."
                    ValidationExpression=".{4}.*" ControlToValidate="txtLisansNo" ForeColor="Red"></asp:RegularExpressionValidator>
                <br />
                <asp:Label ID="lblValidateUniqueLisansNo" runat="server" ForeColor="Red">Bu Lisans No ile daha önceden sisteme kayıt olunmuş.</asp:Label>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label35" runat="server" Text="Parola"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label36" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox class="txtKayit" ID="txtParola" runat="server" TextMode="Password" MaxLength="10"
                    Width="160px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtParola"
                    ErrorMessage="Parola alanı boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Parola en az 6 karakter olmalı."
                    ValidationExpression=".{6}.*" ControlToValidate="txtParola" ForeColor="Red"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label1" runat="server" Text="Adın"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label2" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox class="txtKayit" ID="txtAdin" runat="server" Width="160px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtAdin"
                    ErrorMessage="Adın alanı boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label3" runat="server" Text="Soyadın" Width="150px"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label4" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox class="txtKayit" ID="txtSoyadin" runat="server" Width="160px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtSoyadin"
                    ErrorMessage="Soyadın alanı boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label5" runat="server" Text="Şehir"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label6" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:DropDownList CssClass="ddlKayit" ID="ddlSehir" runat="server" Height="30px"
                    Width="175px" AppendDataBoundItems="True" OnSelectedIndexChanged="ddlSehir_SelectedIndexChanged">
                    <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <asp:Label ID="lblValidateSehir" runat="server" ForeColor="Red" Text="Şehir seçiniz."></asp:Label>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label11" runat="server" Text="Klasman"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label12" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:DropDownList CssClass="ddlKayit" ID="ddlKlasman" runat="server" Height="30px"
                    AppendDataBoundItems="True" Width="175px" OnSelectedIndexChanged="ddlKlasman_SelectedIndexChanged">
                    <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <asp:Label ID="lblValidateKlasman" runat="server" ForeColor="Red" Text="Klasman seçiniz."></asp:Label>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label9" runat="server" Text="TC Kimlik No"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label10" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox class="txtKayit" ID="txtTcKimlikNo" runat="server" MaxLength="11"></asp:TextBox>
                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" Enabled="True"
                    FilterType="Numbers" TargetControlID="txtTcKimlikNo">
                </asp:FilteredTextBoxExtender>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtTcKimlikNo"
                    ErrorMessage="TC Kimlik No alanı boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="TC Kimlik No 11 karakter olmalı."
                    ValidationExpression=".{11}" ControlToValidate="txtTcKimlikNo" ForeColor="Red"
                    Width="300px"></asp:RegularExpressionValidator><br />
                <asp:Label ID="lblValidateUniqueTcKimlikNo" runat="server" ForeColor="Red" Text="Bu TC Kimlik No ile daha önceden sisteme kayıt olunmuş."></asp:Label>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label39" runat="server" Text="E-posta Adresi"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label40" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox class="txtKayit" ID="txtEposta" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtEposta"
                    ErrorMessage="E-posta alanı boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEposta"
                    ErrorMessage="E-posta formatına uygun şekilde giriş yapınız." ForeColor="Red"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><br />
                <asp:Label ID="lblValidateUniqueEposta" runat="server" ForeColor="Red" Text="Bu E-posta ile daha önceden sisteme kayıt olunmuş."></asp:Label>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label41" runat="server" Text="E-postayı Tekrar Gir"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label42" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox class="txtKayit" ID="txtEpostaTekrar" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtEpostaTekrar"
                    ErrorMessage="E-posta Tekrarı boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtEposta"
                    ControlToValidate="txtEpostaTekrar" ErrorMessage="E-posta aynı değil." ForeColor="Red"></asp:CompareValidator>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
                <asp:Label class="bold" ID="Label7" runat="server" Text="DogumTarihi"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label8" runat="server" Font-Bold="True" Text=":"></asp:Label>
            </td>
            <td width="100">
                <table cellspacing="0">
                    <tr>
                        <asp:TextBox ID="txtDogumTarihi" class="txtKayit" runat="server" Width="145px"></asp:TextBox>
                        <asp:MaskedEditExtender runat="server" ID="MaskedEditExtender1" TargetControlID="txtDogumTarihi"
                            Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                            OnInvalidCssClass="MaskedEditError" MaskType="None" InputDirection="LeftToRight"
                            AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" />
                        <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDogumTarihi"
                            Format="dd-MM-yyyy" PopupButtonID="ImageCalendar1">
                        </asp:CalendarExtender>
                        <asp:ImageButton ID="ImageCalendar1" runat="server" ImageUrl="~/images/calendar.png"
                            CausesValidation="False" Width="16px" Height="16px" />
                    </tr>
                </table>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtDogumTarihi"
                    ErrorMessage="Doğum Tarihi boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
            </td>
            <td>
                &nbsp;
            </td>
            <td>
            </td>
            <td valign="bottom">
                &nbsp;
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
            </td>
            <td>
            </td>
            <td valign="bottom">
                <asp:Button ID="lnkBtnKayit" CssClass="btn btn-danger" Text="Kaydol" runat="server"
                    Style="height: 26px" OnClick="btnKaydol_Click" />
            </td>
            <td>
            </td>
        </tr>
        <tr class="trKayit">
            <td class="tdKayit">
            </td>
            <td>
            </td>
            <td>
                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ForeColor="Red" />
            </td>
            <td>
            </td>
        </tr>
    </table>
    <%--<script type="text/javascript" language="javascript">
    function Kod() {
        var i = document.getElementById('MainContent_KullaniciKayit1_imgKod');
        i.src = '<%=ResolveUrl("~/SecureImg.aspx")%>?r=' + Math.random();
    }

    if (document.getElementById('MainContent_KullaniciKayit1_imgKod') != null) {
        Kod();
    }
</script>--%>
</div>
